﻿namespace GoodAdmin.Core;

/// <summary>
/// 缓存常量
/// </summary>
public class CacheConst
{
    /// <summary>
    /// 系统前缀
    /// </summary>
    public const string SYSTEM_PREFIX = "System:";
    /// <summary>
    /// 系统配置
    /// </summary>
    public const string SysConfig = SYSTEM_PREFIX + "SysConfig:";

    /// <summary>
    /// 用户信息
    /// </summary>
    public const string SysUser = SYSTEM_PREFIX + "SysUser:";
    /// <summary>
    /// 用户帐号与Id关联存储
    /// </summary>
    public const string SysUserAccount = SYSTEM_PREFIX + "SysUserAccount";
    /// <summary>
    /// 组织信息
    /// </summary>
    public const string SysOrg = SYSTEM_PREFIX + "SysOrg:";
    /// <summary>
    /// 菜单信息
    /// </summary>
    public const string SysMenu = SYSTEM_PREFIX + "SysMenu:";
    /// <summary>
    /// 资源信息
    /// </summary>
    public const string SysResource = SYSTEM_PREFIX + "SysResource:";
    /// <summary>
    /// 角色信息
    /// </summary>
    public const string SysRole = SYSTEM_PREFIX + "SysRole:";
    /// <summary>
    /// 职位信息
    /// </summary>
    public const string SysPosition = SYSTEM_PREFIX + "SysPosition:";

    /// <summary>
    /// 用户权限信息
    /// </summary>
    public const string ApiRole = SYSTEM_PREFIX + "ApiRole:";

    /// <summary>
    /// 用户权限信息
    /// </summary>
    public const string ApiResource = SYSTEM_PREFIX + "ApiResource";

    /// <summary>
    /// 关联关系
    /// </summary>
    public const string SysRelation = SYSTEM_PREFIX + "SysRelation:";
    /// <summary>
    /// 用户登录密码错误次数
    /// </summary>

    public const string UserLoginWrongNumber = SYSTEM_PREFIX + "UserLoginWrongNumber";

    /// <summary>
    /// 登录锁定用户
    /// </summary>
    public const string LockedUser = SYSTEM_PREFIX + "LockedUser";

    /// <summary>
    /// 验证码
    /// </summary>
    public const string Captcha = SYSTEM_PREFIX + "Captcha:";
    /// <summary>
    /// 公共权限路由
    /// </summary>
    public const string CommonRoleApi = ApiRole + "CommonRoleApi";
    /// <summary>
    /// 公共权限菜单列表
    /// </summary>
    public const string CommonRoleMenu = SYSTEM_PREFIX+"CommonRoleMenu";
    /// <summary>
    /// 字典类型
    /// </summary>
    public const string SysDictType = SYSTEM_PREFIX+"SysDictType";
    /// <summary>
    /// 字典数据
    /// </summary>
    public const string SysDictData = SYSTEM_PREFIX+ "SysDictData:";
    public const string UserToken = SYSTEM_PREFIX+ "UserToken";
}